import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class ResetList extends StatelessWidget {
  final resetAll;
  final resetUsers;
  final resetPublic;

  ResetList({Key key, this.resetAll,this.resetUsers,this.resetPublic}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: ScreenUtil().setWidth(750),
      height: ScreenUtil().setHeight(500),
//      decoration: BoxDecoration(
//      ),
      child: Column(
        children: <Widget>[
          Container(
            width: ScreenUtil().setWidth(750),
            height: ScreenUtil().setHeight(90),
            padding: EdgeInsets.only(left: 10.0, right: 10.0),
            decoration: BoxDecoration(
              border: Border(
                bottom: BorderSide(width: 1.0, color: Colors.blueGrey),
              ),
            ),
            child: Flex(
              direction: Axis.horizontal,
              mainAxisAlignment: MainAxisAlignment.spaceBetween,
              children: <Widget>[
                Container(),
                Text(
                  "重置",
                  style: TextStyle(color: Colors.white, fontSize: 18.0),
                ),
                InkWell(
                  onTap: () {
                    Navigator.pop(context);
                  },
                  child: Icon(
                    Icons.close,
                    size: 18.0,
                    color: Colors.green,
                  ),
                )
              ],
            ),
          ),
          Container(
            width: ScreenUtil().setWidth(750),
            height: ScreenUtil().setHeight(90),
            alignment: Alignment.center,
            child: InkWell(
              onTap: () {
                resetAll();
                Navigator.pop(context);
              },
              child: Container(
                  width: ScreenUtil().setWidth(680),
                  height: ScreenUtil().setHeight(75),
                  alignment: Alignment.center,
                  decoration: BoxDecoration(
                    color: Color.fromRGBO(255, 255, 255, 0),
                    borderRadius: BorderRadius.all(Radius.circular(4.0)),
                    border: Border.all(color: Colors.blueAccent, width: 1.0),
                  ),
                  child: Center(
                    child: Text(
                      "全部重置",
                      style: TextStyle(color: Colors.green),
                    ),
                  )),
            ),
          ),
          Container(
            width: ScreenUtil().setWidth(750),
            height: ScreenUtil().setHeight(90),
            alignment: Alignment.center,
            child: InkWell(
              onTap: () {
                resetUsers();
                Navigator.pop(context);
              },
              child: Container(
                  width: ScreenUtil().setWidth(680),
                  height: ScreenUtil().setHeight(75),
                  alignment: Alignment.center,
                  decoration: BoxDecoration(
                    color: Color.fromRGBO(255, 255, 255, 0),
                    borderRadius: BorderRadius.all(Radius.circular(4.0)),
                    border: Border.all(color: Colors.blueAccent, width: 1.0),
                  ),
                  child: Center(
                    child: Text(
                      "重置手牌",
                      style: TextStyle(color: Colors.green),
                    ),
                  )),
            ),
          ),
          Container(
            width: ScreenUtil().setWidth(750),
            height: ScreenUtil().setHeight(90),
            alignment: Alignment.center,
            child: InkWell(
              onTap: () {
                resetPublic();
                Navigator.pop(context);
              },
              child: Container(
                  width: ScreenUtil().setWidth(680),
                  height: ScreenUtil().setHeight(75),
                  alignment: Alignment.center,
                  decoration: BoxDecoration(
                    color: Color.fromRGBO(255, 255, 255, 0),
                    borderRadius: BorderRadius.all(Radius.circular(4.0)),
                    border: Border.all(color: Colors.blueAccent, width: 1.0),
                  ),
                  child: Center(
                    child: Text(
                      "重置公共牌",
                      style: TextStyle(color: Colors.green),
                    ),
                  )),
            ),
          ),
          Container(
            width: ScreenUtil().setWidth(750),
            height: ScreenUtil().setHeight(90),
            alignment: Alignment.center,
            child: InkWell(
              onTap: () {},
              child: Container(
                  width: ScreenUtil().setWidth(680),
                  height: ScreenUtil().setHeight(75),
                  alignment: Alignment.center,
                  decoration: BoxDecoration(
                    color: Color.fromRGBO(255, 255, 255, 0),
                    borderRadius: BorderRadius.all(Radius.circular(4.0)),
                    border: Border.all(color: Colors.blueAccent, width: 1.0),
                  ),
                  child: Center(
                    child: Text(
                      "重置死牌",
                      style: TextStyle(color: Colors.green),
                    ),
                  )),
            ),
          )
        ],
      ),
    );
  }
}
